package com.nuoniu.sibanyun.mapper.baseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nuoniu.sibanyun.annotation.DataAuth;
import com.nuoniu.sibanyun.entity.dto.DynamicDto;
import com.nuoniu.sibanyun.mapper.provider.CrmDynamicConditionProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.HashMap;

public interface CrmDynamicConditionMapper {

    @SelectProvider(type = CrmDynamicConditionProvider.class, method = "crmDynamicConditionSql")
    @DataAuth(tableAlias = "crm",personalField = "collar_user_id",companyField = "company_id",officeField = "office_id")
    Page<HashMap<String,Object>>  CrmDynamicPage(DynamicDto dynamicDto,HashMap<String,Object> paramMap, Page page);
}
